home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2008 March / MAC_easy_03_08.iso / Software / Shareware / Isolator-3.3.dmg / Docs / Source Code / CGSPrivate.h < prev    next >
MacBinary  |  2008-06-04  |  10.1 KB  |  [□□□□/□□□□]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, Wed Jun 4 13:09:53 2008, modified Wed Jun 4 13:09:53 2008, 9732 bytes "CGSPrivate.h" , at 0x2684 286 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% dearkID deark: macbinary default
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[□□□□]
macFileCreator[□□□□]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 43 47 53 50 72 69 | 76 61 74 65 2e 68 00 00 |..CGSPri|vate.h..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 26 04 00 | 00 01 1e c4 6c 7c e1 c4 |.....&..|....l|..|
|00000060| 6c 7c e1 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |l|......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 57 28 00 00 |........|....W(..|
|00000080| 2f 2a 20 43 47 53 50 72 | 69 76 61 74 65 2e 68 20 |/* CGSPr|ivate.h |
|00000090| 2d 2d 20 48 65 61 64 65 | 72 20 66 69 6c 65 20 66 |-- Heade|r file f|
|000000a0| 6f 72 20 75 6e 64 6f 63 | 75 6d 65 6e 74 65 64 20 |or undoc|umented |
|000000b0| 43 6f 72 65 47 72 61 70 | 68 69 63 73 20 73 74 75 |CoreGrap|hics stu|
|000000c0| 66 66 2e 20 2a 2f 0a 0a | 2f 2a 20 44 65 73 6b 74 |ff. */..|/* Deskt|
|000000d0| 6f 70 4d 61 6e 61 67 65 | 72 20 2d 2d 20 41 20 76 |opManage|r -- A v|
|000000e0| 69 72 74 75 61 6c 20 64 | 65 73 6b 74 6f 70 20 70 |irtual d|esktop p|
|000000f0| 72 6f 76 69 64 65 72 20 | 66 6f 72 20 4f 53 20 58 |rovider |for OS X|
|00000100| 0a 2a 0a 2a 20 43 6f 70 | 79 72 69 67 68 74 20 28 |.*.* Cop|yright (|
|00000110| 43 29 20 32 30 30 33 2c | 20 32 30 30 34 20 52 69 |C) 2003,| 2004 Ri|
|00000120| 63 68 61 72 64 20 4a 20 | 57 61 72 65 68 61 6d 20 |chard J |Wareham |
|00000130| 3c 72 69 63 68 77 61 72 | 65 68 61 6d 40 75 73 65 |<richwar|eham@use|
|00000140| 72 73 2e 73 6f 75 72 63 | 65 66 6f 72 67 65 2e 6e |rs.sourc|eforge.n|
|00000150| 65 74 3e 0a 2a 20 54 68 | 69 73 20 70 72 6f 67 72 |et>.* Th|is progr|
|00000160| 61 6d 20 69 73 20 66 72 | 65 65 20 73 6f 66 74 77 |am is fr|ee softw|
|00000170| 61 72 65 3b 20 79 6f 75 | 20 63 61 6e 20 72 65 64 |are; you| can red|
|00000180| 69 73 74 72 69 62 75 74 | 65 20 69 74 20 61 6e 64 |istribut|e it and|
|00000190| 2f 6f 72 20 6d 6f 64 69 | 66 79 20 69 74 20 0a 2a |/or modi|fy it .*|
|000001a0| 20 75 6e 64 65 72 20 74 | 68 65 20 74 65 72 6d 73 | under t|he terms|
|000001b0| 20 6f 66 20 74 68 65 20 | 47 4e 55 20 47 65 6e 65 | of the |GNU Gene|
|000001c0| 72 61 6c 20 50 75 62 6c | 69 63 20 4c 69 63 65 6e |ral Publ|ic Licen|
|000001d0| 73 65 20 61 73 20 70 75 | 62 6c 69 73 68 65 64 20 |se as pu|blished |
|000001e0| 62 79 20 74 68 65 20 46 | 72 65 65 20 0a 2a 20 53 |by the F|ree .* S|
|000001f0| 6f 66 74 77 61 72 65 20 | 46 6f 75 6e 64 61 74 69 |oftware |Foundati|
|00000200| 6f 6e 3b 20 65 69 74 68 | 65 72 20 76 65 72 73 69 |on; eith|er versi|
|00000210| 6f 6e 20 32 20 6f 66 20 | 74 68 65 20 4c 69 63 65 |on 2 of |the Lice|
|00000220| 6e 73 65 2c 20 6f 72 20 | 28 61 74 20 79 6f 75 72 |nse, or |(at your|
|00000230| 20 6f 70 74 69 6f 6e 29 | 0a 2a 20 61 6e 79 20 6c | option)|.* any l|
|00000240| 61 74 65 72 20 76 65 72 | 73 69 6f 6e 2e 0a 2a 0a |ater ver|sion..*.|
|00000250| 2a 20 54 68 69 73 20 70 | 72 6f 67 72 61 6d 20 69 |* This p|rogram i|
|00000260| 73 20 64 69 73 74 72 69 | 62 75 74 65 64 20 69 6e |s distri|buted in|
|00000270| 20 74 68 65 20 68 6f 70 | 65 20 74 68 61 74 20 69 | the hop|e that i|
|00000280| 74 20 77 69 6c 6c 20 62 | 65 20 75 73 65 66 75 6c |t will b|e useful|
|00000290| 2c 20 62 75 74 20 0a 2a | 20 57 49 54 48 4f 55 54 |, but .*| WITHOUT|
|000002a0| 20 41 4e 59 20 57 41 52 | 52 41 4e 54 59 3b 20 77 | ANY WAR|RANTY; w|
|000002b0| 69 74 68 6f 75 74 20 65 | 76 65 6e 20 74 68 65 20 |ithout e|ven the |
|000002c0| 69 6d 70 6c 69 65 64 20 | 77 61 72 72 61 6e 74 79 |implied |warranty|
|000002d0| 20 6f 66 20 4d 45 52 43 | 48 41 4e 54 41 42 49 4c | of MERC|HANTABIL|
|000002e0| 49 54 59 20 0a 2a 20 6f | 72 20 46 49 54 4e 45 53 |ITY .* o|r FITNES|
|000002f0| 53 20 46 4f 52 20 41 20 | 50 41 52 54 49 43 55 4c |S FOR A |PARTICUL|
|00000300| 41 52 20 50 55 52 50 4f | 53 45 2e 20 53 65 65 20 |AR PURPO|SE. See |
|00000310| 74 68 65 20 47 4e 55 20 | 47 65 6e 65 72 61 6c 20 |the GNU |General |
|00000320| 50 75 62 6c 69 63 20 4c | 69 63 65 6e 73 65 20 0a |Public L|icense .|
|00000330| 2a 20 66 6f 72 20 6d 6f | 72 65 20 64 65 74 61 69 |* for mo|re detai|
|00000340| 6c 73 2e 0a 2a 0a 2a 20 | 59 6f 75 20 73 68 6f 75 |ls..*.* |You shou|
|00000350| 6c 64 20 68 61 76 65 20 | 72 65 63 65 69 76 65 64 |ld have |received|
|00000360| 20 61 20 63 6f 70 79 20 | 6f 66 20 74 68 65 20 47 | a copy |of the G|
|00000370| 4e 55 20 47 65 6e 65 72 | 61 6c 20 50 75 62 6c 69 |NU Gener|al Publi|
|00000380| 63 20 4c 69 63 65 6e 73 | 65 20 61 6c 6f 6e 67 20 |c Licens|e along |
|00000390| 0a 2a 20 77 69 74 68 20 | 74 68 69 73 20 70 72 6f |.* with |this pro|
|000003a0| 67 72 61 6d 3b 20 69 66 | 20 6e 6f 74 2c 20 77 72 |gram; if| not, wr|
|000003b0| 69 74 65 20 74 6f 20 74 | 68 65 20 46 72 65 65 20 |ite to t|he Free |
|000003c0| 53 6f 66 74 77 61 72 65 | 20 46 6f 75 6e 64 61 74 |Software| Foundat|
|000003d0| 69 6f 6e 2c 20 49 6e 63 | 2e 2c 20 36 37 35 20 0a |ion, Inc|., 675 .|
|000003e0| 2a 20 4d 61 73 73 20 41 | 76 65 2c 20 43 61 6d 62 |* Mass A|ve, Camb|
|000003f0| 72 69 64 67 65 2c 20 4d | 41 20 30 32 31 33 39 2c |ridge, M|A 02139,|
|00000400| 20 55 53 41 2e 0a 2a 2f | 0a 0a 23 69 6e 63 6c 75 | USA..*/|..#inclu|
|00000410| 64 65 20 3c 43 61 72 62 | 6f 6e 2f 43 61 72 62 6f |de <Carb|on/Carbo|
|00000420| 6e 2e 68 3e 0a 0a 2f 2a | 20 54 68 65 73 65 20 66 |n.h>../*| These f|
|00000430| 75 6e 63 74 69 6f 6e 73 | 20 61 6c 6c 20 72 65 74 |unctions| all ret|
|00000440| 75 72 6e 20 61 20 73 74 | 61 74 75 73 20 63 6f 64 |urn a st|atus cod|
|00000450| 65 2e 20 54 79 70 69 63 | 61 6c 20 43 6f 72 65 47 |e. Typic|al CoreG|
|00000460| 72 61 70 68 69 63 73 20 | 72 65 70 6c 69 65 73 20 |raphics |replies |
|00000470| 61 72 65 3a 0a 6b 43 47 | 45 72 72 6f 72 53 75 63 |are:.kCG|ErrorSuc|
|00000480| 63 65 73 73 20 3d 20 30 | 2c 0a 6b 43 47 45 72 72 |cess = 0|,.kCGErr|
|00000490| 6f 72 46 69 72 73 74 20 | 3d 20 31 30 30 30 2c 0a |orFirst |= 1000,.|
|000004a0| 6b 43 47 45 72 72 6f 72 | 46 61 69 6c 75 72 65 20 |kCGError|Failure |
|000004b0| 3d 20 6b 43 47 45 72 72 | 6f 72 46 69 72 73 74 2c |= kCGErr|orFirst,|
|000004c0| 0a 6b 43 47 45 72 72 6f | 72 49 6c 6c 65 67 61 6c |.kCGErro|rIllegal|
|000004d0| 41 72 67 75 6d 65 6e 74 | 20 3d 20 31 30 30 31 2c |Argument| = 1001,|
|000004e0| 0a 6b 43 47 45 72 72 6f | 72 49 6e 76 61 6c 69 64 |.kCGErro|rInvalid|
|000004f0| 43 6f 6e 6e 65 63 74 69 | 6f 6e 20 3d 20 31 30 30 |Connecti|on = 100|
|00000500| 32 2c 0a 2a 2f 0a 0a 2f | 2f 20 49 6e 74 65 72 6e |2,.*/../|/ Intern|
|00000510| 61 6c 20 43 6f 72 65 47 | 72 61 70 68 69 63 73 20 |al CoreG|raphics |
|00000520| 74 79 70 65 64 65 66 73 | 0a 74 79 70 65 64 65 66 |typedefs|.typedef|
|00000530| 20 69 6e 74 09 09 43 47 | 53 43 6f 6e 6e 65 63 74 | int..CG|SConnect|
|00000540| 69 6f 6e 3b 0a 74 79 70 | 65 64 65 66 20 69 6e 74 |ion;.typ|edef int|
|00000550| 09 09 43 47 53 57 69 6e | 64 6f 77 3b 0a 74 79 70 |..CGSWin|dow;.typ|
|00000560| 65 64 65 66 20 69 6e 74 | 09 09 43 47 53 56 61 6c |edef int|..CGSVal|
|00000570| 75 65 3b 0a 0a 2f 2f 2f | 2f 20 43 4f 4e 53 54 41 |ue;..///|/ CONSTA|
|00000580| 4e 54 53 20 2f 2f 2f 2f | 0a 0a 2f 2a 20 57 69 6e |NTS ////|../* Win|
|00000590| 64 6f 77 20 6f 72 64 65 | 72 69 6e 67 20 6d 6f 64 |dow orde|ring mod|
|000005a0| 65 2e 20 2a 2f 0a 74 79 | 70 65 64 65 66 20 65 6e |e. */.ty|pedef en|
|000005b0| 75 6d 20 5f 43 47 53 57 | 69 6e 64 6f 77 4f 72 64 |um _CGSW|indowOrd|
|000005c0| 65 72 69 6e 67 4d 6f 64 | 65 20 7b 0a 09 6b 43 47 |eringMod|e {..kCG|
|000005d0| 53 4f 72 64 65 72 41 62 | 6f 76 65 20 20 20 20 20 |SOrderAb|ove |
|000005e0| 20 20 20 20 20 20 20 20 | 20 20 20 3d 20 20 31 2c | | = 1,|
|000005f0| 20 2f 2f 20 57 69 6e 64 | 6f 77 20 69 73 20 6f 72 | // Wind|ow is or|
|00000600| 64 65 72 65 64 20 61 62 | 6f 76 65 20 74 61 72 67 |dered ab|ove targ|
|00000610| 65 74 2e 0a 09 6b 43 47 | 53 4f 72 64 65 72 42 65 |et...kCG|SOrderBe|
|00000620| 6c 6f 77 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |low | |
|00000630| 20 20 20 3d 20 2d 31 2c | 20 2f 2f 20 57 69 6e 64 | = -1,| // Wind|
|00000640| 6f 77 20 69 73 20 6f 72 | 64 65 72 65 64 20 62 65 |ow is or|dered be|
|00000650| 6c 6f 77 20 74 61 72 67 | 65 74 2e 0a 09 6b 43 47 |low targ|et...kCG|
|00000660| 53 4f 72 64 65 72 4f 75 | 74 20 20 20 20 20 20 20 |SOrderOu|t |
|00000670| 20 20 20 20 20 20 20 20 | 20 20 20 3d 20 20 30 20 | | = 0 |
|00000680| 20 2f 2f 20 57 69 6e 64 | 6f 77 20 69 73 20 72 65 | // Wind|ow is re|
|00000690| 6d 6f 76 65 64 20 66 72 | 6f 6d 20 74 68 65 20 6f |moved fr|om the o|
|000006a0| 6e 2d 73 63 72 65 65 6e | 20 77 69 6e 64 6f 77 20 |n-screen| window |
|000006b0| 6c 69 73 74 2e 0a 7d 20 | 43 47 53 57 69 6e 64 6f |list..} |CGSWindo|
|000006c0| 77 4f 72 64 65 72 69 6e | 67 4d 6f 64 65 3b 0a 0a |wOrderin|gMode;..|
|000006d0| 2f 2f 20 49 6e 74 65 72 | 6e 61 6c 20 43 6f 72 65 |// Inter|nal Core|
|000006e0| 47 72 61 70 68 69 63 73 | 20 66 75 6e 63 74 69 6f |Graphics| functio|
|000006f0| 6e 73 2e 0a 0a 2f 2a 20 | 52 65 74 72 69 65 76 65 |ns.../* |Retrieve|
|00000700| 20 74 68 65 20 77 6f 72 | 6b 73 70 61 63 65 20 6e | the wor|kspace n|
|00000710| 75 6d 62 65 72 20 61 73 | 73 6f 63 69 61 74 65 64 |umber as|sociated|
|00000720| 20 77 69 74 68 20 74 68 | 65 20 77 6f 72 6b 73 70 | with th|e worksp|
|00000730| 61 63 65 20 63 75 72 72 | 65 6e 74 6c 79 0a 2a 20 |ace curr|ently.* |
|00000740| 62 65 69 6e 67 20 73 68 | 6f 77 6e 2e 0a 2a 0a 2a |being sh|own..*.*|
|00000750| 20 63 69 64 20 2d 2d 20 | 43 75 72 72 65 6e 74 20 | cid -- |Current |
|00000760| 63 6f 6e 6e 65 63 74 69 | 6f 6e 2e 0a 2a 20 77 6f |connecti|on..* wo|
|00000770| 72 6b 73 70 61 63 65 20 | 2d 2d 20 50 6f 69 6e 74 |rkspace |-- Point|
|00000780| 65 72 20 74 6f 20 69 6e | 74 20 76 61 6c 75 65 20 |er to in|t value |
|00000790| 74 6f 20 62 65 20 73 65 | 74 20 74 6f 20 77 6f 72 |to be se|t to wor|
|000007a0| 6b 73 70 61 63 65 20 6e | 75 6d 62 65 72 2e 0a 2a |kspace n|umber..*|
|000007b0| 2f 0a 65 78 74 65 72 6e | 20 4f 53 53 74 61 74 75 |/.extern| OSStatu|
|000007c0| 73 20 43 47 53 47 65 74 | 57 6f 72 6b 73 70 61 63 |s CGSGet|Workspac|
|000007d0| 65 28 63 6f 6e 73 74 20 | 43 47 53 43 6f 6e 6e 65 |e(const |CGSConne|
|000007e0| 63 74 69 6f 6e 20 63 69 | 64 2c 20 69 6e 74 20 2a |ction ci|d, int *|
|000007f0| 77 6f 72 6b 73 70 61 63 | 65 29 3b 0a 0a 2f 2a 20 |workspac|e);../* |
|00000800| 52 65 74 72 69 65 76 65 | 20 77 6f 72 6b 73 70 61 |Retrieve| workspa|
|00000810| 63 65 20 6e 75 6d 62 65 | 72 20 61 73 73 6f 63 69 |ce numbe|r associ|
|00000820| 61 74 65 64 20 77 69 74 | 68 20 74 68 65 20 77 6f |ated wit|h the wo|
|00000830| 72 6b 73 70 61 63 65 20 | 61 20 70 61 72 74 69 63 |rkspace |a partic|
|00000840| 75 6c 61 72 20 77 69 6e | 64 6f 77 0a 2a 20 72 65 |ular win|dow.* re|
|00000850| 73 69 64 65 73 20 6f 6e | 2e 0a 2a 0a 2a 20 63 69 |sides on|..*.* ci|
|00000860| 64 20 2d 2d 20 43 75 72 | 72 65 6e 74 20 63 6f 6e |d -- Cur|rent con|
|00000870| 6e 65 63 74 69 6f 6e 2e | 0a 2a 20 77 69 64 20 2d |nection.|.* wid -|
|00000880| 2d 20 57 69 6e 64 6f 77 | 20 6e 75 6d 62 65 72 20 |- Window| number |
|00000890| 6f 66 20 77 69 6e 64 6f | 77 20 74 6f 20 65 78 61 |of windo|w to exa|
|000008a0| 6d 69 6e 65 2e 0a 2a 20 | 77 6f 72 6b 73 70 61 63 |mine..* |workspac|
|000008b0| 65 20 2d 2d 20 50 6f 69 | 6e 74 65 72 20 74 6f 20 |e -- Poi|nter to |
|000008c0| 69 6e 74 20 76 61 6c 75 | 65 20 74 6f 20 62 65 20 |int valu|e to be |
|000008d0| 73 65 74 20 74 6f 20 77 | 6f 72 6b 73 70 61 63 65 |set to w|orkspace|
|000008e0| 20 6e 75 6d 62 65 72 2e | 0a 2a 2f 0a 65 78 74 65 | number.|.*/.exte|
|000008f0| 72 6e 20 4f 53 53 74 61 | 74 75 73 20 43 47 53 47 |rn OSSta|tus CGSG|
|00000900| 65 74 57 69 6e 64 6f 77 | 57 6f 72 6b 73 70 61 63 |etWindow|Workspac|
|00000910| 65 28 63 6f 6e 73 74 20 | 43 47 53 43 6f 6e 6e 65 |e(const |CGSConne|
|00000920| 63 74 69 6f 6e 20 63 69 | 64 2c 20 63 6f 6e 73 74 |ction ci|d, const|
|00000930| 20 43 47 53 57 69 6e 64 | 6f 77 20 77 69 64 2c 20 | CGSWind|ow wid, |
|00000940| 69 6e 74 20 2a 77 6f 72 | 6b 73 70 61 63 65 29 3b |int *wor|kspace);|
|00000950| 0a 0a 2f 2a 20 53 68 6f | 77 20 77 6f 72 6b 73 70 |../* Sho|w worksp|
|00000960| 61 63 65 20 61 73 73 6f | 63 69 61 74 65 64 20 77 |ace asso|ciated w|
|00000970| 69 74 68 20 61 20 77 6f | 72 6b 73 70 61 63 65 20 |ith a wo|rkspace |
|00000980| 6e 75 6d 62 65 72 2e 0a | 2a 0a 2a 20 63 69 64 20 |number..|*.* cid |
|00000990| 2d 2d 20 43 75 72 72 65 | 6e 74 20 63 6f 6e 6e 65 |-- Curre|nt conne|
|000009a0| 63 74 69 6f 6e 2e 0a 2a | 20 77 6f 72 6b 73 70 61 |ction..*| workspa|
|000009b0| 63 65 20 2d 2d 20 57 6f | 72 6b 73 70 61 63 65 20 |ce -- Wo|rkspace |
|000009c0| 6e 75 6d 62 65 72 2e 0a | 2a 2f 0a 65 78 74 65 72 |number..|*/.exter|
|000009d0| 6e 20 4f 53 53 74 61 74 | 75 73 20 43 47 53 53 65 |n OSStat|us CGSSe|
|000009e0| 74 57 6f 72 6b 73 70 61 | 63 65 28 63 6f 6e 73 74 |tWorkspa|ce(const|
|000009f0| 20 43 47 53 43 6f 6e 6e | 65 63 74 69 6f 6e 20 63 | CGSConn|ection c|
|00000a00| 69 64 2c 20 69 6e 74 20 | 77 6f 72 6b 73 70 61 63 |id, int |workspac|
|00000a10| 65 29 3b 0a 0a 74 79 70 | 65 64 65 66 20 65 6e 75 |e);..typ|edef enu|
|00000a20| 6d 20 7b 0a 09 43 47 53 | 4e 6f 6e 65 20 3d 20 30 |m {..CGS|None = 0|
|00000a30| 2c 09 09 09 09 09 2f 2f | 20 4e 6f 20 74 72 61 6e |,.....//| No tran|
|00000a40| 73 69 74 69 6f 6e 20 65 | 66 66 65 63 74 2e 0a 09 |sition e|ffect...|
|00000a50| 43 47 53 46 61 64 65 2c | 09 09 09 09 09 09 09 2f |CGSFade,|......./|
|00000a60| 2f 20 43 72 6f 73 73 2d | 66 61 64 65 2e 0a 09 43 |/ Cross-|fade...C|
|00000a70| 47 53 5a 6f 6f 6d 2c 09 | 09 09 09 09 09 09 2f 2f |GSZoom,.|......//|
|00000a80| 20 5a 6f 6f 6d 2f 66 61 | 64 65 20 74 6f 77 61 72 | Zoom/fa|de towar|
|00000a90| 64 73 20 75 73 2e 0a 09 | 43 47 53 52 65 76 65 61 |ds us...|CGSRevea|
|00000aa0| 6c 2c 09 09 09 09 09 09 | 2f 2f 20 52 65 76 65 61 |l,......|// Revea|
|00000ab0| 6c 20 6e 65 77 20 64 65 | 73 6b 74 6f 70 20 75 6e |l new de|sktop un|
|00000ac0| 64 65 72 20 6f 6c 64 2e | 0a 09 43 47 53 53 6c 69 |der old.|..CGSSli|
|00000ad0| 64 65 2c 09 09 09 09 09 | 09 09 2f 2f 20 53 6c 69 |de,.....|..// Sli|
|00000ae0| 64 65 20 6f 6c 64 20 6f | 75 74 20 61 6e 64 20 6e |de old o|ut and n|
|00000af0| 65 77 20 69 6e 2e 0a 09 | 43 47 53 57 61 72 70 46 |ew in...|CGSWarpF|
|00000b00| 61 64 65 2c 09 09 09 09 | 09 2f 2f 20 57 61 72 70 |ade,....|.// Warp|
|00000b10| 20 6f 6c 64 20 61 6e 64 | 20 66 61 64 65 20 6f 75 | old and| fade ou|
|00000b20| 74 20 72 65 76 65 61 6c | 69 6e 67 20 6e 65 77 2e |t reveal|ing new.|
|00000b30| 0a 09 43 47 53 53 77 61 | 70 2c 09 09 09 09 09 09 |..CGSSwa|p,......|
|00000b40| 09 2f 2f 20 53 77 61 70 | 20 64 65 73 6b 74 6f 70 |.// Swap| desktop|
|00000b50| 73 20 6f 76 65 72 20 67 | 72 61 70 68 69 63 61 6c |s over g|raphical|
|00000b60| 6c 79 2e 0a 09 43 47 53 | 43 75 62 65 2c 09 09 09 |ly...CGS|Cube,...|
|00000b70| 09 09 09 09 2f 2f 20 54 | 68 65 20 77 65 6c 6c 2d |....// T|he well-|
|00000b80| 6b 6e 6f 77 6e 20 63 75 | 62 65 20 65 66 66 65 63 |known cu|be effec|
|00000b90| 74 2e 0a 09 43 47 53 57 | 61 72 70 53 77 69 74 63 |t...CGSW|arpSwitc|
|00000ba0| 68 2c 09 09 09 09 2f 2f | 20 57 61 72 70 20 6f 6c |h,....//| Warp ol|
|00000bb0| 64 2c 20 73 77 69 74 63 | 68 20 61 6e 64 20 75 6e |d, switc|h and un|
|00000bc0| 2d 77 61 72 70 2e 0a 09 | 43 47 53 46 6c 69 70 09 |-warp...|CGSFlip.|
|00000bd0| 09 09 09 09 09 09 09 2f | 2f 20 46 6c 69 70 20 6f |......./|/ Flip o|
|00000be0| 76 65 72 0a 7d 20 43 47 | 53 54 72 61 6e 73 69 74 |ver.} CG|STransit|
|00000bf0| 69 6f 6e 54 79 70 65 3b | 0a 0a 74 79 70 65 64 65 |ionType;|..typede|
|00000c00| 66 20 65 6e 75 6d 20 7b | 0a 09 43 47 53 44 6f 77 |f enum {|..CGSDow|
|00000c10| 6e 2c 09 09 09 09 09 09 | 09 2f 2f 20 4f 6c 64 20 |n,......|.// Old |
|00000c20| 64 65 73 6b 74 6f 70 20 | 6d 6f 76 65 73 20 64 6f |desktop |moves do|
|00000c30| 77 6e 2e 0a 09 43 47 53 | 4c 65 66 74 2c 09 09 09 |wn...CGS|Left,...|
|00000c40| 09 09 09 09 2f 2f 20 4f | 6c 64 20 64 65 73 6b 74 |....// O|ld deskt|
|00000c50| 6f 70 20 6d 6f 76 65 73 | 20 6c 65 66 74 2e 0a 09 |op moves| left...|
|00000c60| 43 47 53 52 69 67 68 74 | 2c 09 09 09 09 09 09 09 |CGSRight|,.......|
|00000c70| 2f 2f 20 4f 6c 64 20 64 | 65 73 6b 74 6f 70 20 6d |// Old d|esktop m|
|00000c80| 6f 76 65 73 20 72 69 67 | 68 74 2e 0a 09 43 47 53 |oves rig|ht...CGS|
|00000c90| 49 6e 52 69 67 68 74 2c | 09 09 09 09 09 09 2f 2f |InRight,|......//|
|00000ca0| 20 43 47 53 53 77 61 70 | 3a 20 4f 6c 64 20 64 65 | CGSSwap|: Old de|
|00000cb0| 73 6b 74 6f 70 20 6d 6f | 76 65 73 20 69 6e 74 6f |sktop mo|ves into|
|00000cc0| 20 73 63 72 65 65 6e 2c | 20 6e 65 77 20 63 6f 6d | screen,| new com|
|00000cd0| 65 73 20 66 72 6f 6d 20 | 72 69 67 68 74 2e 0a 09 |es from |right...|
|00000ce0| 43 47 53 42 6f 74 74 6f | 6d 4c 65 66 74 20 3d 20 |CGSBotto|mLeft = |
|00000cf0| 35 2c 09 09 2f 2f 20 43 | 47 53 53 77 61 70 3a 20 |5,..// C|GSSwap: |
|00000d00| 4f 6c 64 20 64 65 73 6b | 74 6f 70 20 6d 6f 76 65 |Old desk|top move|
|00000d10| 73 20 74 6f 20 62 6c 2c | 20 6e 65 77 20 63 6f 6d |s to bl,| new com|
|00000d20| 65 73 20 66 72 6f 6d 20 | 74 72 2e 0a 09 43 47 53 |es from |tr...CGS|
|00000d30| 42 6f 74 74 6f 6d 52 69 | 67 68 74 2c 09 09 09 09 |BottomRi|ght,....|
|00000d40| 2f 2f 20 4f 6c 64 20 64 | 65 73 6b 74 6f 70 20 74 |// Old d|esktop t|
|00000d50| 6f 20 62 72 2c 20 4e 65 | 77 20 66 72 6f 6d 20 74 |o br, Ne|w from t|
|00000d60| 6c 2e 0a 09 43 47 53 44 | 6f 77 6e 54 6f 70 52 69 |l...CGSD|ownTopRi|
|00000d70| 67 68 74 2c 09 09 09 2f | 2f 20 43 47 53 53 77 61 |ght,.../|/ CGSSwa|
|00000d80| 70 3a 20 4f 6c 64 20 64 | 65 73 6b 74 6f 70 20 6d |p: Old d|esktop m|
|00000d90| 6f 76 65 73 20 64 6f 77 | 6e 2c 20 6e 65 77 20 66 |oves dow|n, new f|
|00000da0| 72 6f 6d 20 74 72 2e 0a | 09 43 47 53 55 70 2c 09 |rom tr..|.CGSUp,.|
|00000db0| 09 09 09 09 09 09 09 2f | 2f 20 4f 6c 64 20 64 65 |......./|/ Old de|
|00000dc0| 73 6b 74 6f 70 20 6d 6f | 76 65 73 20 75 70 2e 0a |sktop mo|ves up..|
|00000dd0| 09 43 47 53 54 6f 70 4c | 65 66 74 2c 09 09 09 09 |.CGSTopL|eft,....|
|00000de0| 09 09 2f 2f 20 4f 6c 64 | 20 64 65 73 6b 74 6f 70 |..// Old| desktop|
|00000df0| 20 6d 6f 76 65 73 20 74 | 6c 2e 0a 09 0a 09 43 47 | moves t|l.....CG|
|00000e00| 53 54 6f 70 52 69 67 68 | 74 2c 09 09 09 09 09 2f |STopRigh|t,...../|
|00000e10| 2f 20 43 47 53 53 77 61 | 70 3a 20 6f 6c 64 20 74 |/ CGSSwa|p: old t|
|00000e20| 6f 20 74 72 2e 20 6e 65 | 77 20 66 72 6f 6d 20 62 |o tr. ne|w from b|
|00000e30| 6c 2e 0a 09 43 47 53 55 | 70 42 6f 74 74 6f 6d 52 |l...CGSU|pBottomR|
|00000e40| 69 67 68 74 2c 09 09 09 | 2f 2f 20 43 47 53 53 77 |ight,...|// CGSSw|
|00000e50| 61 70 3a 20 6f 6c 64 20 | 64 65 73 6b 74 6f 70 20 |ap: old |desktop |
|00000e60| 75 70 2c 20 6e 65 77 20 | 66 72 6f 6d 20 62 72 2e |up, new |from br.|
|00000e70| 0a 09 43 47 53 49 6e 42 | 6f 74 74 6f 6d 2c 09 09 |..CGSInB|ottom,..|
|00000e80| 09 09 09 2f 2f 20 43 47 | 53 53 77 61 70 3a 20 6f |...// CG|SSwap: o|
|00000e90| 6c 64 20 69 6e 2c 20 6e | 65 77 20 66 72 6f 6d 20 |ld in, n|ew from |
|00000ea0| 62 6f 74 74 6f 6d 2e 0a | 09 43 47 53 4c 65 66 74 |bottom..|.CGSLeft|
|00000eb0| 42 6f 74 74 6f 6d 52 69 | 67 68 74 2c 09 09 2f 2f |BottomRi|ght,..//|
|00000ec0| 20 43 47 53 53 77 61 70 | 3a 20 6f 6c 64 20 6f 6e | CGSSwap|: old on|
|00000ed0| 65 20 6d 6f 76 65 73 20 | 6c 65 66 74 2c 20 6e 65 |e moves |left, ne|
|00000ee0| 77 20 66 72 6f 6d 20 62 | 72 2e 0a 09 43 47 53 52 |w from b|r...CGSR|
|00000ef0| 69 67 68 74 42 6f 74 74 | 6f 6d 4c 65 66 74 2c 09 |ightBott|omLeft,.|
|00000f00| 09 2f 2f 20 43 47 53 53 | 77 61 70 3a 20 6f 6c 64 |.// CGSS|wap: old|
|00000f10| 20 6f 6e 65 20 6d 6f 76 | 65 73 20 72 69 67 68 74 | one mov|es right|
|00000f20| 2c 20 6e 65 77 20 66 72 | 6f 6d 20 62 6c 2e 0a 09 |, new fr|om bl...|
|00000f30| 43 47 53 49 6e 42 6f 74 | 74 6f 6d 52 69 67 68 74 |CGSInBot|tomRight|
|00000f40| 2c 09 09 09 2f 2f 20 43 | 47 53 53 77 61 70 3a 20 |,...// C|GSSwap: |
|00000f50| 6f 6e 6c 20 6f 6e 65 20 | 69 6e 2c 20 6e 65 77 20 |onl one |in, new |
|00000f60| 66 72 6f 6d 20 62 72 2e | 0a 09 43 47 53 49 6e 4f |from br.|..CGSInO|
|00000f70| 75 74 09 09 09 09 09 09 | 09 2f 2f 20 43 47 53 53 |ut......|.// CGSS|
|00000f80| 77 61 70 3a 20 6f 6c 64 | 20 69 6e 2c 20 6e 65 77 |wap: old| in, new|
|00000f90| 20 6f 75 74 2e 0a 7d 20 | 43 47 53 54 72 61 6e 73 | out..} |CGSTrans|
|00000fa0| 69 74 69 6f 6e 4f 70 74 | 69 6f 6e 3b 0a 0a 74 79 |itionOpt|ion;..ty|
|00000fb0| 70 65 64 65 66 20 65 6e | 75 6d 20 7b 0a 09 43 47 |pedef en|um {..CG|
|00000fc0| 53 54 61 67 4e 6f 6e 65 | 09 09 09 09 09 3d 20 30 |STagNone|.....= 0|
|00000fd0| 2c 09 09 09 09 2f 2f 20 | 4e 6f 20 74 61 67 73 0a |,....// |No tags.|
|00000fe0| 09 43 47 53 54 61 67 45 | 78 70 6f 73 65 46 61 64 |.CGSTagE|xposeFad|
|00000ff0| 65 09 09 3d 20 30 78 30 | 30 30 32 2c 09 09 2f 2f |e..= 0x0|002,..//|
|00001000| 20 46 61 64 65 20 6f 75 | 74 20 77 68 65 6e 20 45 | Fade ou|t when E|
|00001010| 78 70 6f 73 65 20 61 63 | 74 69 76 61 74 65 73 2e |xpose ac|tivates.|
|00001020| 0a 09 43 47 53 54 61 67 | 4e 6f 53 68 61 64 6f 77 |..CGSTag|NoShadow|
|00001030| 09 09 09 3d 20 30 78 30 | 30 30 38 2c 09 09 2f 2f |...= 0x0|008,..//|
|00001040| 20 4e 6f 20 77 69 6e 64 | 6f 77 20 73 68 61 64 6f | No wind|ow shado|
|00001050| 77 2e 0a 09 43 47 53 54 | 61 67 54 72 61 6e 73 70 |w...CGST|agTransp|
|00001060| 61 72 65 6e 74 20 20 20 | 3d 20 30 78 30 32 30 30 |arent |= 0x0200|
|00001070| 2c 20 20 20 2f 2f 20 54 | 72 61 6e 73 70 61 72 65 |, // T|ranspare|
|00001080| 6e 74 20 74 6f 20 6d 6f | 75 73 65 20 63 6c 69 63 |nt to mo|use clic|
|00001090| 6b 73 2e 0a 09 43 47 53 | 54 61 67 53 74 69 63 6b |ks...CGS|TagStick|
|000010a0| 79 09 09 09 09 3d 20 30 | 78 30 38 30 30 2c 09 09 |y....= 0|x0800,..|
|000010b0| 2f 2f 20 41 70 70 65 61 | 72 73 20 6f 6e 20 61 6c |// Appea|rs on al|
|000010c0| 6c 20 77 6f 72 6b 73 70 | 61 63 65 73 2e 0a 7d 20 |l worksp|aces..} |
|000010d0| 43 47 53 57 69 6e 64 6f | 77 54 61 67 3b 0a 0a 65 |CGSWindo|wTag;..e|
|000010e0| 78 74 65 72 6e 20 4f 53 | 53 74 61 74 75 73 20 43 |xtern OS|Status C|
|000010f0| 47 53 53 65 74 57 6f 72 | 6b 73 70 61 63 65 57 69 |GSSetWor|kspaceWi|
|00001100| 74 68 54 72 61 6e 73 69 | 74 69 6f 6e 28 63 6f 6e |thTransi|tion(con|
|00001110| 73 74 20 43 47 53 43 6f | 6e 6e 65 63 74 69 6f 6e |st CGSCo|nnection|
|00001120| 20 63 69 64 2c 0a 09 09 | 09 09 09 09 09 09 09 09 | cid,...|........|
|00001130| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 69 6e 74 |........|.....int|
|00001140| 20 77 6f 72 6b 73 70 61 | 63 65 4e 75 6d 62 65 72 | workspa|ceNumber|
|00001150| 2c 20 0a 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |, ......|........|
|00001160| 09 09 09 09 09 09 09 09 | 09 09 43 47 53 54 72 61 |........|..CGSTra|
|00001170| 6e 73 69 74 69 6f 6e 54 | 79 70 65 20 74 72 61 6e |nsitionT|ype tran|
|00001180| 73 69 74 69 6f 6e 2c 20 | 0a 09 09 09 09 09 09 09 |sition, |........|
|00001190| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|000011a0| 43 47 53 54 72 61 6e 73 | 69 74 69 6f 6e 4f 70 74 |CGSTrans|itionOpt|
|000011b0| 69 6f 6e 20 73 75 62 74 | 79 70 65 2c 20 0a 09 09 |ion subt|ype, ...|
|000011c0| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|000011d0| 09 09 09 09 09 66 6c 6f | 61 74 20 74 69 6d 65 29 |.....flo|at time)|
|000011e0| 3b 0a 0a 2f 2a 20 47 65 | 74 20 74 68 65 20 64 65 |;../* Ge|t the de|
|000011f0| 66 61 75 6c 74 20 63 6f | 6e 6e 65 63 74 69 6f 6e |fault co|nnection|
|00001200| 20 66 6f 72 20 74 68 65 | 20 63 75 72 72 65 6e 74 | for the| current|
|00001210| 20 70 72 6f 63 65 73 73 | 2e 20 2a 2f 0a 65 78 74 | process|. */.ext|
|00001220| 65 72 6e 20 43 47 53 43 | 6f 6e 6e 65 63 74 69 6f |ern CGSC|onnectio|
|00001230| 6e 20 5f 43 47 53 44 65 | 66 61 75 6c 74 43 6f 6e |n _CGSDe|faultCon|
|00001240| 6e 65 63 74 69 6f 6e 28 | 29 3b 0a 65 78 74 65 72 |nection(|);.exter|
|00001250| 6e 20 4f 53 53 74 61 74 | 75 73 20 43 47 53 47 65 |n OSStat|us CGSGe|
|00001260| 74 43 6f 6e 6e 65 63 74 | 69 6f 6e 49 44 46 6f 72 |tConnect|ionIDFor|
|00001270| 50 53 4e 28 55 49 6e 74 | 33 32 20 69 6e 50 61 72 |PSN(UInt|32 inPar|
|00001280| 61 6d 31 2c 20 50 72 6f | 63 65 73 73 53 65 72 69 |am1, Pro|cessSeri|
|00001290| 61 6c 4e 75 6d 62 65 72 | 2a 20 69 6e 50 53 4e 2c |alNumber|* inPSN,|
|000012a0| 20 43 47 53 43 6f 6e 6e | 65 63 74 69 6f 6e 2a 20 | CGSConn|ection* |
|000012b0| 63 69 64 29 3b 0a 0a 74 | 79 70 65 64 65 66 20 73 |cid);..t|ypedef s|
|000012c0| 74 72 75 63 74 20 7b 0a | 09 75 69 6e 74 33 32 5f |truct {.|.uint32_|
|000012d0| 74 20 75 6e 6b 6e 6f 77 | 6e 31 3b 0a 09 43 47 53 |t unknow|n1;..CGS|
|000012e0| 54 72 61 6e 73 69 74 69 | 6f 6e 54 79 70 65 20 74 |Transiti|onType t|
|000012f0| 79 70 65 3b 0a 09 43 47 | 53 54 72 61 6e 73 69 74 |ype;..CG|STransit|
|00001300| 69 6f 6e 4f 70 74 69 6f | 6e 20 6f 70 74 69 6f 6e |ionOptio|n option|
|00001310| 3b 0a 09 43 47 53 57 69 | 6e 64 6f 77 20 77 69 64 |;..CGSWi|ndow wid|
|00001320| 3b 09 09 09 2f 2a 20 43 | 61 6e 20 62 65 20 30 20 |;.../* C|an be 0 |
|00001330| 66 6f 72 20 66 75 6c 6c | 2d 73 63 72 65 65 6e 20 |for full|-screen |
|00001340| 2a 2f 0a 09 66 6c 6f 61 | 74 20 2a 62 61 63 6b 43 |*/..floa|t *backC|
|00001350| 6f 6c 6f 75 72 3b 09 2f | 2a 20 4e 75 6c 6c 20 66 |olour;./|* Null f|
|00001360| 6f 72 20 62 6c 61 63 6b | 20 6f 74 68 65 72 77 69 |or black| otherwi|
|00001370| 73 65 20 70 6f 69 6e 74 | 65 72 20 74 6f 20 33 20 |se point|er to 3 |
|00001380| 66 6c 6f 61 74 20 61 72 | 72 61 79 20 77 69 74 68 |float ar|ray with|
|00001390| 20 52 47 42 20 76 61 6c | 75 65 20 2a 2f 0a 7d 20 | RGB val|ue */.} |
|000013a0| 43 47 53 54 72 61 6e 73 | 69 74 69 6f 6e 53 70 65 |CGSTrans|itionSpe|
|000013b0| 63 3b 0a 0a 2f 2a 20 54 | 72 61 6e 73 69 74 69 6f |c;../* T|ransitio|
|000013c0| 6e 20 68 61 6e 64 6c 69 | 6e 67 2e 20 2a 2f 0a 65 |n handli|ng. */.e|
|000013d0| 78 74 65 72 6e 20 4f 53 | 53 74 61 74 75 73 20 43 |xtern OS|Status C|
|000013e0| 47 53 4e 65 77 54 72 61 | 6e 73 69 74 69 6f 6e 28 |GSNewTra|nsition(|
|000013f0| 63 6f 6e 73 74 20 43 47 | 53 43 6f 6e 6e 65 63 74 |const CG|SConnect|
|00001400| 69 6f 6e 20 63 69 64 2c | 20 63 6f 6e 73 74 20 43 |ion cid,| const C|
|00001410| 47 53 54 72 61 6e 73 69 | 74 69 6f 6e 53 70 65 63 |GSTransi|tionSpec|
|00001420| 2a 20 73 70 65 63 2c 20 | 69 6e 74 20 2a 70 54 72 |* spec, |int *pTr|
|00001430| 61 6e 73 69 74 69 6f 6e | 48 61 6e 64 6c 65 29 3b |ansition|Handle);|
|00001440| 0a 65 78 74 65 72 6e 20 | 4f 53 53 74 61 74 75 73 |.extern |OSStatus|
|00001450| 20 43 47 53 49 6e 76 6f | 6b 65 54 72 61 6e 73 69 | CGSInvo|keTransi|
|00001460| 74 69 6f 6e 28 63 6f 6e | 73 74 20 43 47 53 43 6f |tion(con|st CGSCo|
|00001470| 6e 6e 65 63 74 69 6f 6e | 20 63 69 64 2c 20 69 6e |nnection| cid, in|
|00001480| 74 20 74 72 61 6e 73 69 | 74 69 6f 6e 48 61 6e 64 |t transi|tionHand|
|00001490| 6c 65 2c 20 66 6c 6f 61 | 74 20 64 75 72 61 74 69 |le, floa|t durati|
|000014a0| 6f 6e 29 3b 0a 65 78 74 | 65 72 6e 20 4f 53 53 74 |on);.ext|ern OSSt|
|000014b0| 61 74 75 73 20 43 47 53 | 52 65 6c 65 61 73 65 54 |atus CGS|ReleaseT|
|000014c0| 72 61 6e 73 69 74 69 6f | 6e 28 63 6f 6e 73 74 20 |ransitio|n(const |
|000014d0| 43 47 53 43 6f 6e 6e 65 | 63 74 69 6f 6e 20 63 69 |CGSConne|ction ci|
|000014e0| 64 2c 20 69 6e 74 20 74 | 72 61 6e 73 69 74 69 6f |d, int t|ransitio|
|000014f0| 6e 48 61 6e 64 6c 65 29 | 3b 0a 0a 2f 2f 20 74 68 |nHandle)|;..// th|
|00001500| 69 72 74 79 54 77 6f 20 | 6d 75 73 74 20 3d 20 33 |irtyTwo |must = 3|
|00001510| 32 20 66 6f 72 20 73 6f | 6d 65 20 72 65 61 73 6f |2 for so|me reaso|
|00001520| 6e 2e 20 74 61 67 73 20 | 69 73 20 70 6f 69 6e 74 |n. tags |is point|
|00001530| 65 72 20 74 6f 20 0a 2f | 2f 61 72 72 61 79 20 6f |er to ./|/array o|
|00001540| 74 20 69 6e 74 73 20 28 | 73 69 7a 65 20 32 3f 29 |t ints (|size 2?)|
|00001550| 2e 20 46 69 72 73 74 20 | 65 6e 74 72 79 20 68 6f |. First |entry ho|
|00001560| 6c 64 73 20 77 69 6e 64 | 6f 77 20 74 61 67 73 2e |lds wind|ow tags.|
|00001570| 0a 2f 2f 20 30 78 30 38 | 30 30 20 69 73 20 73 74 |.// 0x08|00 is st|
|00001580| 69 63 6b 79 20 62 69 74 | 2e 0a 65 78 74 65 72 6e |icky bit|..extern|
|00001590| 20 4f 53 53 74 61 74 75 | 73 20 43 47 53 47 65 74 | OSStatu|s CGSGet|
|000015a0| 57 69 6e 64 6f 77 54 61 | 67 73 28 63 6f 6e 73 74 |WindowTa|gs(const|
|000015b0| 20 43 47 53 43 6f 6e 6e | 65 63 74 69 6f 6e 20 63 | CGSConn|ection c|
|000015c0| 69 64 2c 20 63 6f 6e 73 | 74 20 43 47 53 57 69 6e |id, cons|t CGSWin|
|000015d0| 64 6f 77 20 77 69 64 2c | 20 0a 09 09 09 09 09 09 |dow wid,| .......|
|000015e0| 09 09 09 09 09 09 09 09 | 09 09 20 43 47 53 57 69 |........|.. CGSWi|
|000015f0| 6e 64 6f 77 54 61 67 20 | 2a 74 61 67 73 2c 20 69 |ndowTag |*tags, i|
|00001600| 6e 74 20 74 68 69 72 74 | 79 54 77 6f 29 3b 0a 65 |nt thirt|yTwo);.e|
|00001610| 78 74 65 72 6e 20 4f 53 | 53 74 61 74 75 73 20 43 |xtern OS|Status C|
|00001620| 47 53 53 65 74 57 69 6e | 64 6f 77 54 61 67 73 28 |GSSetWin|dowTags(|
|00001630| 63 6f 6e 73 74 20 43 47 | 53 43 6f 6e 6e 65 63 74 |const CG|SConnect|
|00001640| 69 6f 6e 20 63 69 64 2c | 20 63 6f 6e 73 74 20 43 |ion cid,| const C|
|00001650| 47 53 57 69 6e 64 6f 77 | 20 77 69 64 2c 20 0a 09 |GSWindow| wid, ..|
|00001660| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 20 |........|....... |
|00001670| 43 47 53 57 69 6e 64 6f | 77 54 61 67 20 2a 74 61 |CGSWindo|wTag *ta|
|00001680| 67 73 2c 20 69 6e 74 20 | 74 68 69 72 74 79 54 77 |gs, int |thirtyTw|
|00001690| 6f 29 3b 0a 65 78 74 65 | 72 6e 20 4f 53 53 74 61 |o);.exte|rn OSSta|
|000016a0| 74 75 73 20 43 47 53 43 | 6c 65 61 72 57 69 6e 64 |tus CGSC|learWind|
|000016b0| 6f 77 54 61 67 73 28 63 | 6f 6e 73 74 20 43 47 53 |owTags(c|onst CGS|
|000016c0| 43 6f 6e 6e 65 63 74 69 | 6f 6e 20 63 69 64 2c 20 |Connecti|on cid, |
|000016d0| 63 6f 6e 73 74 20 43 47 | 53 57 69 6e 64 6f 77 20 |const CG|SWindow |
|000016e0| 77 69 64 2c 20 0a 09 09 | 09 09 09 09 09 09 09 09 |wid, ...|........|
|000016f0| 09 09 09 09 09 09 09 20 | 43 47 53 57 69 6e 64 6f |....... |CGSWindo|
|00001700| 77 54 61 67 20 2a 74 61 | 67 73 2c 20 69 6e 74 20 |wTag *ta|gs, int |
|00001710| 74 68 69 72 74 79 54 77 | 6f 29 3b 0a 65 78 74 65 |thirtyTw|o);.exte|
|00001720| 72 6e 20 4f 53 53 74 61 | 74 75 73 20 43 47 53 47 |rn OSSta|tus CGSG|
|00001730| 65 74 57 69 6e 64 6f 77 | 45 76 65 6e 74 4d 61 73 |etWindow|EventMas|
|00001740| 6b 28 63 6f 6e 73 74 20 | 43 47 53 43 6f 6e 6e 65 |k(const |CGSConne|
|00001750| 63 74 69 6f 6e 20 63 69 | 64 2c 20 63 6f 6e 73 74 |ction ci|d, const|
|00001760| 20 43 47 53 57 69 6e 64 | 6f 77 20 77 69 64 2c 20 | CGSWind|ow wid, |
|00001770| 75 69 6e 74 33 32 5f 74 | 20 2a 6d 61 73 6b 29 3b |uint32_t| *mask);|
|00001780| 0a 65 78 74 65 72 6e 20 | 4f 53 53 74 61 74 75 73 |.extern |OSStatus|
|00001790| 20 43 47 53 53 65 74 57 | 69 6e 64 6f 77 45 76 65 | CGSSetW|indowEve|
|000017a0| 6e 74 4d 61 73 6b 28 63 | 6f 6e 73 74 20 43 47 53 |ntMask(c|onst CGS|
|000017b0| 43 6f 6e 6e 65 63 74 69 | 6f 6e 20 63 69 64 2c 20 |Connecti|on cid, |
|000017c0| 63 6f 6e 73 74 20 43 47 | 53 57 69 6e 64 6f 77 20 |const CG|SWindow |
|000017d0| 77 69 64 2c 20 75 69 6e | 74 33 32 5f 74 20 6d 61 |wid, uin|t32_t ma|
|000017e0| 73 6b 29 3b 0a 0a 2f 2f | 20 47 65 74 20 6f 6e 2d |sk);..//| Get on-|
|000017f0| 73 63 72 65 65 6e 20 77 | 69 6e 64 6f 77 20 63 6f |screen w|indow co|
|00001800| 75 6e 74 73 20 61 6e 64 | 20 6c 69 73 74 73 2e 0a |unts and| lists..|
|00001810| 65 78 74 65 72 6e 20 4f | 53 53 74 61 74 75 73 20 |extern O|SStatus |
|00001820| 43 47 53 47 65 74 57 69 | 6e 64 6f 77 43 6f 75 6e |CGSGetWi|ndowCoun|
|00001830| 74 28 63 6f 6e 73 74 20 | 43 47 53 43 6f 6e 6e 65 |t(const |CGSConne|
|00001840| 63 74 69 6f 6e 20 63 69 | 64 2c 20 43 47 53 43 6f |ction ci|d, CGSCo|
|00001850| 6e 6e 65 63 74 69 6f 6e | 20 74 61 72 67 65 74 43 |nnection| targetC|
|00001860| 49 44 2c 20 69 6e 74 2a | 20 6f 75 74 43 6f 75 6e |ID, int*| outCoun|
|00001870| 74 29 3b 20 0a 65 78 74 | 65 72 6e 20 4f 53 53 74 |t); .ext|ern OSSt|
|00001880| 61 74 75 73 20 43 47 53 | 47 65 74 57 69 6e 64 6f |atus CGS|GetWindo|
|00001890| 77 4c 69 73 74 28 63 6f | 6e 73 74 20 43 47 53 43 |wList(co|nst CGSC|
|000018a0| 6f 6e 6e 65 63 74 69 6f | 6e 20 63 69 64 2c 20 43 |onnectio|n cid, C|
|000018b0| 47 53 43 6f 6e 6e 65 63 | 74 69 6f 6e 20 74 61 72 |GSConnec|tion tar|
|000018c0| 67 65 74 43 49 44 2c 20 | 0a 09 09 09 09 09 09 09 |getCID, |........|
|000018d0| 09 09 09 09 09 09 09 09 | 09 20 69 6e 74 20 63 6f |........|. int co|
|000018e0| 75 6e 74 2c 20 69 6e 74 | 2a 20 6c 69 73 74 2c 20 |unt, int|* list, |
|000018f0| 69 6e 74 2a 20 6f 75 74 | 43 6f 75 6e 74 29 3b 0a |int* out|Count);.|
|00001900| 0a 2f 2f 20 47 65 74 20 | 6f 6e 2d 73 63 72 65 65 |.// Get |on-scree|
|00001910| 6e 20 77 69 6e 64 6f 77 | 20 63 6f 75 6e 74 73 20 |n window| counts |
|00001920| 61 6e 64 20 6c 69 73 74 | 73 2e 0a 65 78 74 65 72 |and list|s..exter|
|00001930| 6e 20 4f 53 53 74 61 74 | 75 73 20 43 47 53 47 65 |n OSStat|us CGSGe|
|00001940| 74 4f 6e 53 63 72 65 65 | 6e 57 69 6e 64 6f 77 43 |tOnScree|nWindowC|
|00001950| 6f 75 6e 74 28 63 6f 6e | 73 74 20 43 47 53 43 6f |ount(con|st CGSCo|
|00001960| 6e 6e 65 63 74 69 6f 6e | 20 63 69 64 2c 20 43 47 |nnection| cid, CG|
|00001970| 53 43 6f 6e 6e 65 63 74 | 69 6f 6e 20 74 61 72 67 |SConnect|ion targ|
|00001980| 65 74 43 49 44 2c 20 69 | 6e 74 2a 20 6f 75 74 43 |etCID, i|nt* outC|
|00001990| 6f 75 6e 74 29 3b 20 0a | 65 78 74 65 72 6e 20 4f |ount); .|extern O|
|000019a0| 53 53 74 61 74 75 73 20 | 43 47 53 47 65 74 4f 6e |SStatus |CGSGetOn|
|000019b0| 53 63 72 65 65 6e 57 69 | 6e 64 6f 77 4c 69 73 74 |ScreenWi|ndowList|
|000019c0| 28 63 6f 6e 73 74 20 43 | 47 53 43 6f 6e 6e 65 63 |(const C|GSConnec|
|000019d0| 74 69 6f 6e 20 63 69 64 | 2c 20 43 47 53 43 6f 6e |tion cid|, CGSCon|
|000019e0| 6e 65 63 74 69 6f 6e 20 | 74 61 72 67 65 74 43 49 |nection |targetCI|
|000019f0| 44 2c 20 0a 09 09 09 09 | 09 09 09 09 09 09 09 09 |D, .....|........|
|00001a00| 09 09 09 09 09 09 09 09 | 20 69 6e 74 20 63 6f 75 |........| int cou|
|00001a10| 6e 74 2c 20 69 6e 74 2a | 20 6c 69 73 74 2c 20 69 |nt, int*| list, i|
|00001a20| 6e 74 2a 20 6f 75 74 43 | 6f 75 6e 74 29 3b 0a 0a |nt* outC|ount);..|
|00001a30| 2f 2f 20 50 65 72 2d 77 | 6f 72 6b 73 70 61 63 65 |// Per-w|orkspace|
|00001a40| 20 77 69 6e 64 6f 77 20 | 63 6f 75 6e 74 73 20 61 | window |counts a|
|00001a50| 6e 64 20 6c 69 73 74 73 | 2e 0a 65 78 74 65 72 6e |nd lists|..extern|
|00001a60| 20 4f 53 53 74 61 74 75 | 73 20 43 47 53 47 65 74 | OSStatu|s CGSGet|
|00001a70| 57 6f 72 6b 73 70 61 63 | 65 57 69 6e 64 6f 77 43 |Workspac|eWindowC|
|00001a80| 6f 75 6e 74 28 63 6f 6e | 73 74 20 43 47 53 43 6f |ount(con|st CGSCo|
|00001a90| 6e 6e 65 63 74 69 6f 6e | 20 63 69 64 2c 20 69 6e |nnection| cid, in|
|00001aa0| 74 20 77 6f 72 6b 73 70 | 61 63 65 4e 75 6d 62 65 |t worksp|aceNumbe|
|00001ab0| 72 2c 20 69 6e 74 20 2a | 6f 75 74 43 6f 75 6e 74 |r, int *|outCount|
|00001ac0| 29 3b 0a 65 78 74 65 72 | 6e 20 4f 53 53 74 61 74 |);.exter|n OSStat|
|00001ad0| 75 73 20 43 47 53 47 65 | 74 57 6f 72 6b 73 70 61 |us CGSGe|tWorkspa|
|00001ae0| 63 65 57 69 6e 64 6f 77 | 4c 69 73 74 28 63 6f 6e |ceWindow|List(con|
|00001af0| 73 74 20 43 47 53 43 6f | 6e 6e 65 63 74 69 6f 6e |st CGSCo|nnection|
|00001b00| 20 63 69 64 2c 20 69 6e | 74 20 77 6f 72 6b 73 70 | cid, in|t worksp|
|00001b10| 61 63 65 4e 75 6d 62 65 | 72 2c 20 69 6e 74 20 63 |aceNumbe|r, int c|
|00001b20| 6f 75 6e 74 2c 20 0a 09 | 09 09 09 09 09 09 09 09 |ount, ..|........|
|00001b30| 09 09 09 09 09 09 09 09 | 09 09 09 09 69 6e 74 2a |........|....int*|
|00001b40| 20 6c 69 73 74 2c 20 69 | 6e 74 2a 20 6f 75 74 43 | list, i|nt* outC|
|00001b50| 6f 75 6e 74 29 3b 0a 0a | 2f 2f 20 47 65 74 73 20 |ount);..|// Gets |
|00001b60| 74 68 65 20 6c 65 76 65 | 6c 20 6f 66 20 61 20 77 |the leve|l of a w|
|00001b70| 69 6e 64 6f 77 0a 65 78 | 74 65 72 6e 20 4f 53 53 |indow.ex|tern OSS|
|00001b80| 74 61 74 75 73 20 43 47 | 53 47 65 74 57 69 6e 64 |tatus CG|SGetWind|
|00001b90| 6f 77 4c 65 76 65 6c 28 | 63 6f 6e 73 74 20 43 47 |owLevel(|const CG|
|00001ba0| 53 43 6f 6e 6e 65 63 74 | 69 6f 6e 20 63 69 64 2c |SConnect|ion cid,|
|00001bb0| 20 43 47 53 57 69 6e 64 | 6f 77 20 77 69 64 2c 20 | CGSWind|ow wid, |
|00001bc0| 0a 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|00001bd0| 09 09 69 6e 74 20 2a 6c | 65 76 65 6c 29 3b 0a 65 |..int *l|evel);.e|
|00001be0| 78 74 65 72 6e 20 4f 53 | 53 74 61 74 75 73 20 43 |xtern OS|Status C|
|00001bf0| 47 53 53 65 74 57 69 6e | 64 6f 77 4c 65 76 65 6c |GSSetWin|dowLevel|
|00001c00| 28 63 6f 6e 73 74 20 43 | 47 53 43 6f 6e 6e 65 63 |(const C|GSConnec|
|00001c10| 74 69 6f 6e 20 63 69 64 | 2c 20 43 47 53 57 69 6e |tion cid|, CGSWin|
|00001c20| 64 6f 77 20 77 69 64 2c | 20 0a 09 09 09 09 09 09 |dow wid,| .......|
|00001c30| 09 09 09 09 09 09 09 09 | 09 09 09 69 6e 74 20 2a |........|...int *|
|00001c40| 6c 65 76 65 6c 29 3b 0a | 0a 2f 2f 20 57 69 6e 64 |level);.|.// Wind|
|00001c50| 6f 77 20 6f 72 64 65 72 | 69 6e 67 0a 65 78 74 65 |ow order|ing.exte|
|00001c60| 72 6e 20 4f 53 53 74 61 | 74 75 73 20 43 47 53 4f |rn OSSta|tus CGSO|
|00001c70| 72 64 65 72 57 69 6e 64 | 6f 77 28 63 6f 6e 73 74 |rderWind|ow(const|
|00001c80| 20 43 47 53 43 6f 6e 6e | 65 63 74 69 6f 6e 20 63 | CGSConn|ection c|
|00001c90| 69 64 2c 20 63 6f 6e 73 | 74 20 43 47 53 57 69 6e |id, cons|t CGSWin|
|00001ca0| 64 6f 77 20 77 69 64 2c | 20 0a 09 09 09 09 09 09 |dow wid,| .......|
|00001cb0| 09 09 09 09 09 09 09 09 | 09 20 43 47 53 57 69 6e |........|. CGSWin|
|00001cc0| 64 6f 77 4f 72 64 65 72 | 69 6e 67 4d 6f 64 65 20 |dowOrder|ingMode |
|00001cd0| 70 6c 61 63 65 2c 20 43 | 47 53 57 69 6e 64 6f 77 |place, C|GSWindow|
|00001ce0| 20 72 65 6c 61 74 69 76 | 65 54 6f 57 69 6e 64 6f | relativ|eToWindo|
|00001cf0| 77 49 44 20 2f 2a 20 63 | 61 6e 20 62 65 20 4e 55 |wID /* c|an be NU|
|00001d00| 4c 4c 20 2a 2f 29 3b 09 | 0a 0a 2f 2f 20 47 65 74 |LL */);.|..// Get|
|00001d10| 73 20 74 68 65 20 73 63 | 72 65 65 6e 20 72 65 63 |s the sc|reen rec|
|00001d20| 74 20 66 6f 72 20 61 20 | 77 69 6e 64 6f 77 2e 0a |t for a |window..|
|00001d30| 65 78 74 65 72 6e 20 4f | 53 53 74 61 74 75 73 20 |extern O|SStatus |
|00001d40| 43 47 53 47 65 74 53 63 | 72 65 65 6e 52 65 63 74 |CGSGetSc|reenRect|
|00001d50| 46 6f 72 57 69 6e 64 6f | 77 28 63 6f 6e 73 74 20 |ForWindo|w(const |
|00001d60| 43 47 53 43 6f 6e 6e 65 | 63 74 69 6f 6e 20 63 69 |CGSConne|ction ci|
|00001d70| 64 2c 20 43 47 53 57 69 | 6e 64 6f 77 20 77 69 64 |d, CGSWi|ndow wid|
|00001d80| 2c 20 0a 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |, ......|........|
|00001d90| 09 09 09 09 09 09 09 09 | 43 47 52 65 63 74 20 2a |........|CGRect *|
|00001da0| 6f 75 74 52 65 63 74 29 | 3b 0a 0a 2f 2f 20 57 69 |outRect)|;..// Wi|
|00001db0| 6e 64 6f 77 20 61 70 70 | 65 61 72 61 6e 63 65 2f |ndow app|earance/|
|00001dc0| 70 6f 73 69 74 69 6f 6e | 0a 65 78 74 65 72 6e 20 |position|.extern |
|00001dd0| 4f 53 53 74 61 74 75 73 | 20 43 47 53 53 65 74 57 |OSStatus| CGSSetW|
|00001de0| 69 6e 64 6f 77 41 6c 70 | 68 61 28 63 6f 6e 73 74 |indowAlp|ha(const|
|00001df0| 20 43 47 53 43 6f 6e 6e | 65 63 74 69 6f 6e 20 63 | CGSConn|ection c|
|00001e00| 69 64 2c 20 63 6f 6e 73 | 74 20 43 47 53 57 69 6e |id, cons|t CGSWin|
|00001e10| 64 6f 77 20 77 69 64 2c | 20 66 6c 6f 61 74 20 61 |dow wid,| float a|
|00001e20| 6c 70 68 61 29 3b 0a 65 | 78 74 65 72 6e 20 4f 53 |lpha);.e|xtern OS|
|00001e30| 53 74 61 74 75 73 20 43 | 47 53 53 65 74 57 69 6e |Status C|GSSetWin|
|00001e40| 64 6f 77 4c 69 73 74 41 | 6c 70 68 61 28 63 6f 6e |dowListA|lpha(con|
|00001e50| 73 74 20 43 47 53 43 6f | 6e 6e 65 63 74 69 6f 6e |st CGSCo|nnection|
|00001e60| 20 63 69 64 2c 20 43 47 | 53 57 69 6e 64 6f 77 20 | cid, CG|SWindow |
|00001e70| 2a 77 69 64 73 2c 20 69 | 6e 74 20 63 6f 75 6e 74 |*wids, i|nt count|
|00001e80| 2c 20 66 6c 6f 61 74 20 | 61 6c 70 68 61 29 3b 0a |, float |alpha);.|
|00001e90| 65 78 74 65 72 6e 20 4f | 53 53 74 61 74 75 73 20 |extern O|SStatus |
|00001ea0| 43 47 53 47 65 74 57 69 | 6e 64 6f 77 41 6c 70 68 |CGSGetWi|ndowAlph|
|00001eb0| 61 28 63 6f 6e 73 74 20 | 43 47 53 43 6f 6e 6e 65 |a(const |CGSConne|
|00001ec0| 63 74 69 6f 6e 20 63 69 | 64 2c 20 63 6f 6e 73 74 |ction ci|d, const|
|00001ed0| 20 43 47 53 57 69 6e 64 | 6f 77 20 77 69 64 2c 20 | CGSWind|ow wid, |
|00001ee0| 66 6c 6f 61 74 2a 20 61 | 6c 70 68 61 29 3b 0a 65 |float* a|lpha);.e|
|00001ef0| 78 74 65 72 6e 20 4f 53 | 53 74 61 74 75 73 20 43 |xtern OS|Status C|
|00001f00| 47 53 4d 6f 76 65 57 69 | 6e 64 6f 77 28 63 6f 6e |GSMoveWi|ndow(con|
|00001f10| 73 74 20 43 47 53 43 6f | 6e 6e 65 63 74 69 6f 6e |st CGSCo|nnection|
|00001f20| 20 63 69 64 2c 20 63 6f | 6e 73 74 20 43 47 53 57 | cid, co|nst CGSW|
|00001f30| 69 6e 64 6f 77 20 77 69 | 64 2c 20 43 47 50 6f 69 |indow wi|d, CGPoi|
|00001f40| 6e 74 20 2a 70 6f 69 6e | 74 29 3b 0a 65 78 74 65 |nt *poin|t);.exte|
|00001f50| 72 6e 20 4f 53 53 74 61 | 74 75 73 20 43 47 53 53 |rn OSSta|tus CGSS|
|00001f60| 65 74 57 69 6e 64 6f 77 | 54 72 61 6e 73 66 6f 72 |etWindow|Transfor|
|00001f70| 6d 28 63 6f 6e 73 74 20 | 43 47 53 43 6f 6e 6e 65 |m(const |CGSConne|
|00001f80| 63 74 69 6f 6e 20 63 69 | 64 2c 20 63 6f 6e 73 74 |ction ci|d, const|
|00001f90| 20 43 47 53 57 69 6e 64 | 6f 77 20 77 69 64 2c 20 | CGSWind|ow wid, |
|00001fa0| 43 47 41 66 66 69 6e 65 | 54 72 61 6e 73 66 6f 72 |CGAffine|Transfor|
|00001fb0| 6d 20 74 72 61 6e 73 66 | 6f 72 6d 29 3b 20 0a 65 |m transf|orm); .e|
|00001fc0| 78 74 65 72 6e 20 4f 53 | 53 74 61 74 75 73 20 43 |xtern OS|Status C|
|00001fd0| 47 53 47 65 74 57 69 6e | 64 6f 77 54 72 61 6e 73 |GSGetWin|dowTrans|
|00001fe0| 66 6f 72 6d 28 63 6f 6e | 73 74 20 43 47 53 43 6f |form(con|st CGSCo|
|00001ff0| 6e 6e 65 63 74 69 6f 6e | 20 63 69 64 2c 20 63 6f |nnection| cid, co|
|00002000| 6e 73 74 20 43 47 53 57 | 69 6e 64 6f 77 20 77 69 |nst CGSW|indow wi|
|00002010| 64 2c 20 43 47 41 66 66 | 69 6e 65 54 72 61 6e 73 |d, CGAff|ineTrans|
|00002020| 66 6f 72 6d 20 2a 20 6f | 75 74 54 72 61 6e 73 66 |form * o|utTransf|
|00002030| 6f 72 6d 29 3b 20 0a 65 | 78 74 65 72 6e 20 4f 53 |orm); .e|xtern OS|
|00002040| 53 74 61 74 75 73 20 43 | 47 53 53 65 74 57 69 6e |Status C|GSSetWin|
|00002050| 64 6f 77 54 72 61 6e 73 | 66 6f 72 6d 73 28 63 6f |dowTrans|forms(co|
|00002060| 6e 73 74 20 43 47 53 43 | 6f 6e 6e 65 63 74 69 6f |nst CGSC|onnectio|
|00002070| 6e 20 63 69 64 2c 20 43 | 47 53 57 69 6e 64 6f 77 |n cid, C|GSWindow|
|00002080| 20 2a 77 69 64 73 2c 20 | 43 47 41 66 66 69 6e 65 | *wids, |CGAffine|
|00002090| 54 72 61 6e 73 66 6f 72 | 6d 20 2a 74 72 61 6e 73 |Transfor|m *trans|
|000020a0| 66 6f 72 6d 2c 20 69 6e | 74 20 6e 29 3b 20 0a 0a |form, in|t n); ..|
|000020b0| 65 78 74 65 72 6e 20 4f | 53 53 74 61 74 75 73 20 |extern O|SStatus |
|000020c0| 43 47 53 4d 6f 76 65 57 | 6f 72 6b 73 70 61 63 65 |CGSMoveW|orkspace|
|000020d0| 57 69 6e 64 6f 77 73 28 | 63 6f 6e 73 74 20 43 47 |Windows(|const CG|
|000020e0| 53 43 6f 6e 6e 65 63 74 | 69 6f 6e 20 63 6f 6e 6e |SConnect|ion conn|
|000020f0| 65 63 74 69 6f 6e 2c 20 | 69 6e 74 20 74 6f 57 6f |ection, |int toWo|
|00002100| 72 6b 73 70 61 63 65 2c | 20 69 6e 74 20 66 72 6f |rkspace,| int fro|
|00002110| 6d 57 6f 72 6b 73 70 61 | 63 65 29 3b 0a 65 78 74 |mWorkspa|ce);.ext|
|00002120| 65 72 6e 20 4f 53 53 74 | 61 74 75 73 20 43 47 53 |ern OSSt|atus CGS|
|00002130| 4d 6f 76 65 57 6f 72 6b | 73 70 61 63 65 57 69 6e |MoveWork|spaceWin|
|00002140| 64 6f 77 4c 69 73 74 28 | 63 6f 6e 73 74 20 43 47 |dowList(|const CG|
|00002150| 53 43 6f 6e 6e 65 63 74 | 69 6f 6e 20 63 6f 6e 6e |SConnect|ion conn|
|00002160| 65 63 74 69 6f 6e 2c 20 | 43 47 53 57 69 6e 64 6f |ection, |CGSWindo|
|00002170| 77 20 2a 77 69 64 73 2c | 20 69 6e 74 20 63 6f 75 |w *wids,| int cou|
|00002180| 6e 74 2c 20 0a 09 09 09 | 09 09 09 09 09 09 09 09 |nt, ....|........|
|00002190| 09 09 09 09 09 09 09 09 | 09 09 20 69 6e 74 20 74 |........|.. int t|
|000021a0| 6f 57 6f 72 6b 73 70 61 | 63 65 29 3b 0a 0a 2f 2f |oWorkspa|ce);..//|
|000021b0| 20 65 78 74 65 72 6e 20 | 4f 53 53 74 61 74 75 73 | extern |OSStatus|
|000021c0| 20 43 47 53 43 6f 6e 6e | 65 63 74 69 6f 6e 47 65 | CGSConn|ectionGe|
|000021d0| 74 50 49 44 28 63 6f 6e | 73 74 20 43 47 53 43 6f |tPID(con|st CGSCo|
|000021e0| 6e 6e 65 63 74 69 6f 6e | 20 63 69 64 2c 20 70 69 |nnection| cid, pi|
|000021f0| 64 5f 74 20 2a 70 69 64 | 2c 20 43 47 53 43 6f 6e |d_t *pid|, CGSCon|
|00002200| 6e 65 63 74 69 6f 6e 20 | 62 29 3b 0a 0a 65 78 74 |nection |b);..ext|
|00002210| 65 72 6e 20 4f 53 53 74 | 61 74 75 73 20 43 47 53 |ern OSSt|atus CGS|
|00002220| 47 65 74 57 69 6e 64 6f | 77 50 72 6f 70 65 72 74 |GetWindo|wPropert|
|00002230| 79 28 63 6f 6e 73 74 20 | 43 47 53 43 6f 6e 6e 65 |y(const |CGSConne|
|00002240| 63 74 69 6f 6e 20 63 69 | 64 2c 20 43 47 53 57 69 |ction ci|d, CGSWi|
|00002250| 6e 64 6f 77 20 77 69 64 | 2c 20 43 47 53 56 61 6c |ndow wid|, CGSVal|
|00002260| 75 65 20 6b 65 79 2c 0a | 09 09 09 09 09 09 09 09 |ue key,.|........|
|00002270| 09 09 09 09 09 09 09 09 | 09 09 20 43 47 53 56 61 |........|.. CGSVa|
|00002280| 6c 75 65 20 2a 6f 75 74 | 56 61 6c 75 65 29 3b 0a |lue *out|Value);.|
|00002290| 65 78 74 65 72 6e 20 4f | 53 53 74 61 74 75 73 20 |extern O|SStatus |
|000022a0| 43 47 53 53 65 74 57 69 | 6e 64 6f 77 50 72 6f 70 |CGSSetWi|ndowProp|
|000022b0| 65 72 74 79 28 63 6f 6e | 73 74 20 43 47 53 43 6f |erty(con|st CGSCo|
|000022c0| 6e 6e 65 63 74 69 6f 6e | 20 63 69 64 2c 20 43 47 |nnection| cid, CG|
|000022d0| 53 57 69 6e 64 6f 77 20 | 77 69 64 2c 20 43 47 53 |SWindow |wid, CGS|
|000022e0| 56 61 6c 75 65 20 6b 65 | 79 2c 0a 09 09 09 09 09 |Value ke|y,......|
|000022f0| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 20 43 47 |........|..... CG|
|00002300| 53 56 61 6c 75 65 20 2a | 6f 75 74 56 61 6c 75 65 |SValue *|outValue|
|00002310| 29 3b 0a 0a 2f 2f 65 78 | 74 65 72 6e 20 4f 53 53 |);..//ex|tern OSS|
|00002320| 74 61 74 75 73 20 43 47 | 53 57 69 6e 64 6f 77 41 |tatus CG|SWindowA|
|00002330| 64 64 52 65 63 74 54 6f | 44 69 72 74 79 53 68 61 |ddRectTo|DirtySha|
|00002340| 70 65 28 63 6f 6e 73 74 | 20 43 47 53 43 6f 6e 6e |pe(const| CGSConn|
|00002350| 65 63 74 69 6f 6e 20 63 | 69 64 2c 20 63 6f 6e 73 |ection c|id, cons|
|00002360| 74 20 43 47 53 57 69 6e | 64 6f 77 20 77 69 64 2c |t CGSWin|dow wid,|
|00002370| 20 43 47 52 65 63 74 20 | 2a 72 65 63 74 29 3b 0a | CGRect |*rect);.|
|00002380| 65 78 74 65 72 6e 20 4f | 53 53 74 61 74 75 73 20 |extern O|SStatus |
|00002390| 43 47 53 55 6e 63 6f 76 | 65 72 57 69 6e 64 6f 77 |CGSUncov|erWindow|
|000023a0| 28 63 6f 6e 73 74 20 43 | 47 53 43 6f 6e 6e 65 63 |(const C|GSConnec|
|000023b0| 74 69 6f 6e 20 63 69 64 | 2c 20 63 6f 6e 73 74 20 |tion cid|, const |
|000023c0| 43 47 53 57 69 6e 64 6f | 77 20 77 69 64 29 3b 0a |CGSWindo|w wid);.|
|000023d0| 65 78 74 65 72 6e 20 4f | 53 53 74 61 74 75 73 20 |extern O|SStatus |
|000023e0| 43 47 53 46 6c 75 73 68 | 57 69 6e 64 6f 77 28 63 |CGSFlush|Window(c|
|000023f0| 6f 6e 73 74 20 43 47 53 | 43 6f 6e 6e 65 63 74 69 |onst CGS|Connecti|
|00002400| 6f 6e 20 63 69 64 2c 20 | 63 6f 6e 73 74 20 43 47 |on cid, |const CG|
|00002410| 53 57 69 6e 64 6f 77 20 | 77 69 64 2c 20 69 6e 74 |SWindow |wid, int|
|00002420| 20 75 6e 6b 6e 6f 77 6e | 20 2f 2a 20 30 20 77 6f | unknown| /* 0 wo|
|00002430| 72 6b 73 20 2a 2f 20 29 | 3b 0a 0a 65 78 74 65 72 |rks */ )|;..exter|
|00002440| 6e 20 4f 53 53 74 61 74 | 75 73 20 43 47 53 47 65 |n OSStat|us CGSGe|
|00002450| 74 57 69 6e 64 6f 77 4f | 77 6e 65 72 28 63 6f 6e |tWindowO|wner(con|
|00002460| 73 74 20 43 47 53 43 6f | 6e 6e 65 63 74 69 6f 6e |st CGSCo|nnection|
|00002470| 20 63 69 64 2c 20 63 6f | 6e 73 74 20 43 47 53 57 | cid, co|nst CGSW|
|00002480| 69 6e 64 6f 77 20 77 69 | 64 2c 20 43 47 53 43 6f |indow wi|d, CGSCo|
|00002490| 6e 6e 65 63 74 69 6f 6e | 20 2a 6f 77 6e 65 72 43 |nnection| *ownerC|
|000024a0| 69 64 29 3b 0a 65 78 74 | 65 72 6e 20 4f 53 53 74 |id);.ext|ern OSSt|
|000024b0| 61 74 75 73 20 43 47 53 | 43 6f 6e 6e 65 63 74 69 |atus CGS|Connecti|
|000024c0| 6f 6e 47 65 74 50 49 44 | 28 63 6f 6e 73 74 20 43 |onGetPID|(const C|
|000024d0| 47 53 43 6f 6e 6e 65 63 | 74 69 6f 6e 20 63 69 64 |GSConnec|tion cid|
|000024e0| 2c 20 70 69 64 5f 74 20 | 2a 70 69 64 2c 20 63 6f |, pid_t |*pid, co|
|000024f0| 6e 73 74 20 43 47 53 43 | 6f 6e 6e 65 63 74 69 6f |nst CGSC|onnectio|
|00002500| 6e 20 6f 77 6e 65 72 43 | 69 64 29 3b 0a 0a 2f 2f |n ownerC|id);..//|
|00002510| 20 56 61 6c 75 65 73 0a | 65 78 74 65 72 6e 20 43 | Values.|extern C|
|00002520| 47 53 56 61 6c 75 65 20 | 43 47 53 43 72 65 61 74 |GSValue |CGSCreat|
|00002530| 65 43 53 74 72 69 6e 67 | 4e 6f 43 6f 70 79 28 63 |eCString|NoCopy(c|
|00002540| 6f 6e 73 74 20 63 68 61 | 72 20 2a 73 74 72 29 3b |onst cha|r *str);|
|00002550| 0a 65 78 74 65 72 6e 20 | 43 47 53 56 61 6c 75 65 |.extern |CGSValue|
|00002560| 20 43 47 53 43 72 65 61 | 74 65 43 53 74 72 69 6e | CGSCrea|teCStrin|
|00002570| 67 28 63 6f 6e 73 74 20 | 63 68 61 72 2a 20 73 74 |g(const |char* st|
|00002580| 72 29 3b 0a 65 78 74 65 | 72 6e 20 63 68 61 72 2a |r);.exte|rn char*|
|00002590| 20 43 47 53 43 53 74 72 | 69 6e 67 56 61 6c 75 65 | CGSCStr|ingValue|
|000025a0| 28 43 47 53 56 61 6c 75 | 65 20 73 74 72 69 6e 67 |(CGSValu|e string|
|000025b0| 29 3b 0a 65 78 74 65 72 | 6e 20 69 6e 74 20 43 47 |);.exter|n int CG|
|000025c0| 53 49 6e 74 65 67 65 72 | 56 61 6c 75 65 28 43 47 |SInteger|Value(CG|
|000025d0| 53 56 61 6c 75 65 20 69 | 6e 74 56 61 6c 29 3b 0a |SValue i|ntVal);.|
|000025e0| 65 78 74 65 72 6e 20 76 | 6f 69 64 20 2a 43 47 53 |extern v|oid *CGS|
|000025f0| 52 65 6c 65 61 73 65 47 | 65 6e 65 72 69 63 4f 62 |ReleaseG|enericOb|
|00002600| 6a 28 76 6f 69 64 2a 29 | 3b 0a 0a 2f 2f 20 41 64 |j(void*)|;..// Ad|
|00002610| 64 65 64 20 42 57 20 4d | 61 79 20 32 30 30 38 0a |ded BW M|ay 2008.|
|00002620| 65 78 74 65 72 6e 20 4f | 53 53 74 61 74 75 73 20 |extern O|SStatus |
|00002630| 43 47 53 4e 65 77 43 6f | 6e 6e 65 63 74 69 6f 6e |CGSNewCo|nnection|
|00002640| 28 63 6f 6e 73 74 20 76 | 6f 69 64 20 2a 2a 61 74 |(const v|oid **at|
|00002650| 74 72 2c 20 43 47 53 43 | 6f 6e 6e 65 63 74 69 6f |tr, CGSC|onnectio|
|00002660| 6e 20 2a 69 64 29 3b 0a | 74 79 70 65 64 65 66 20 |n *id);.|typedef |
|00002670| 69 6e 74 20 43 47 53 43 | 49 46 69 6c 74 65 72 49 |int CGSC|IFilterI|
|00002680| 44 3b 0a 0a 00 00 00 00 | 00 00 00 00 00 00 00 00 |D;......|........|
|00002690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002700| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00002710| 54 68 69 73 20 72 65 73 | 6f 75 72 63 65 20 66 6f |This res|ource fo|
|00002720| 72 6b 20 69 6e 74 65 6e | 74 69 6f 6e 61 6c 6c 79 |rk inten|tionally|
|00002730| 20 6c 65 66 74 20 62 6c | 61 6e 6b 20 20 20 00 00 | left bl|ank ..|
|00002740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002800| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00002810| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 00 00 |........|........|
|00002820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+